﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using TTSBLL;
using TTSModel;
/// <summary>
/// AirtightnessTekWebService 的摘要说明
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
// 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务，请取消注释以下行。 
// [System.Web.Script.Services.ScriptService]
public class AirtightnessTekWebService : System.Web.Services.WebService 
{
    private AirtightnessTek _airtightnessTekBLL;
  //  private AirtightnessTekInfo _AirtightnessTekInfo;
    public AirtightnessTekWebService()
    {

        //如果使用设计的组件，请取消注释以下行 
        //InitializeComponent(); 
        _airtightnessTekBLL = new AirtightnessTek();
      //  _AirtightnessTekInfo = new AirtightnessTekInfo();
    }

    //[WebMethod]
    //public string HelloWorld() {
    //    return "Hello World";
    //}
    [WebMethod(Description = "录入气密测试信息")]
    public bool AirtightnessTekInfo_Insert(string _KccSN, DateTime _RecordTime, string _ProductType, string _UserId, int _TestValue, string _TestResult)
    {
        AirtightnessTekInfo _AirtightnessTekInfo = new AirtightnessTekInfo() 
        {
             KccSN = _KccSN,
             RecordTime = _RecordTime,
             ProductType = _ProductType,
             UserId = _UserId,
             TestValue = _TestValue,
             TestResult = _TestResult,
        };
      
      return _airtightnessTekBLL.Insert(_AirtightnessTekInfo);
    }
}
